package com.garyme.hycloud.model;

public enum RespCode {
    SUCCESS(200, "成功"),
    FAIL(500, "失败"),
    NOT_FOUND(404, "未找到"),
    BAD_REQUEST(400, "请求错误"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_IMPLEMENTED(501, "未实现"),
    BAD_GATEWAY(502, "网关错误"),
    SERVICE_UNAVAILABLE(503, "服务不可用"),
    GATEWAY_TIMEOUT(504, "网关超时"),
    INTERNAL_SERVER_ERROR(500, "内部服务器错误"),
    BAD_METHOD(405, "请求方法错误"),
    BAD_PARAMETER(400, "请求参数错误"),
    BAD_TOKEN(401, "token错误"),
    BAD_REFRESH_TOKEN(401, "refreshToken错误"),
    ;
    private Integer code;
    private String msg;


    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
